package com.yscz.peexcel.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 */
@Component
@ConfigurationProperties(prefix = "yscz.excel")
public class YmlValueConfig {

    //读取用至静态方法中
    //private static String reportWordPath;
    //public static String getReportWordPath() {
    //    return reportWordPath;
    //}
    //public void setReportWordPath(String reportWordPath) {
    //    YmlValueConfig.reportWordPath = reportWordPath;
    //}

    /**
     * excel文件地址
     */
    private static String location;

    public static String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        YmlValueConfig.location = location;
    }
}
